//
//  ChangePassViewController.m
//  HdMovie
//
//  Created by Classic on 1/9/13.
//  Copyright (c) 2013 Hoang tuan. All rights reserved.
//

#import "ChangePassViewController.h"

@interface ChangePassViewController ()

@end

@implementation ChangePassViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    UIView *paddingView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 5, 20)] autorelease];
    _txtFldNewPass.leftView = paddingView;
    _txtFldNewPass.leftViewMode = UITextFieldViewModeAlways;
    UIView *paddingView1= [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 5, 20)] autorelease];
    _txtFldOldPass.leftView = paddingView1;
    _txtFldOldPass.leftViewMode = UITextFieldViewModeAlways;
    UIView *paddingView2 = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 5, 20)] autorelease];
    _txtFldRePass.leftView = paddingView2;
    _txtFldRePass.leftViewMode = UITextFieldViewModeAlways;
    _txtFldOldPass.delegate = self;
    _txtFldNewPass.delegate = self;
    _txtFldRePass.delegate = self;
}

-(BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [textField resignFirstResponder];
    return NO;
}
   
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)dealloc {
    [self setTxtFldOldPass:nil];
    [self setTxtFldNewPass:nil];
    [self setTxtFldRePass:nil];
    [super dealloc];
}
- (void)viewDidUnload {
    [self setTxtFldOldPass:nil];
    [self setTxtFldNewPass:nil];
    [self setTxtFldRePass:nil];
    [super viewDidUnload];
}
- (IBAction)okClick:(id)sender {
    
}

- (IBAction)backClick:(id)sender {
    [self dismissModalViewControllerAnimated:YES];
}
@end
